package com.leoman.banner.service;

import com.leoman.banner.entity.Banner;
import com.leoman.common.service.GenericManager;
import com.leoman.resources.entity.StillResource;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by 蔡琦 on 2016/6/29 0029.
 *
 */
public interface BannerService extends GenericManager<Banner>{

    // 广告banner列表（分页）
    Page<Banner> page(Integer pageNum, Integer pageSize);

    // 查询视频、小说、漫画的banner
    List<Banner> findByTypeAndCategoryId(Integer type, Long categoryId);
}
